﻿using EasyDDD.AdminModule.Domain.AggregateSysAdmin;
using System.Text.Json;

namespace EasyDDD.AdminModule.Repository.DataSeed
{
    internal class SysAdminSeed
    {
        internal IList<SysAdmin> GetDataSeed()
        {
            var list = new List<SysAdmin>();
            list = System.Text.Json.JsonSerializer.Deserialize<List<SysAdmin>>("""
            [
              {
                "userName": "admin",
                "normalizedUserName": "ADMIN",
                "email": "test2@test.test",
                "normalizedEmail": "TEST2@TEST.TEST",
                "emailConfirmed": false,
                "passwordHash": "0KMvgqZ74ZyGIZwT9znSXg==",
                "passwordSalt": "PFei/KIJpUeNAbo9XJZQqg==",
                "phoneNumber": "13012345678",
                "phoneNumberConfirmed": false,
                "twoFactorEnabled": false,
                "lockoutEnd": "2024-11-03T03:45:52Z",
                "lockoutEnabled": false,
                "accessFailedCount": 0,
                "status": 0,
                "userType": 0,
                "nickName": "管理员",
                "refreshToken": "",
                "lastIp": "",
                "lastTime": "2024-11-03T03:45:52Z",
                "remark": "",
                "claims": [],
                "logins": [],
                "tokens": [],
                "userRoles": [],
                "id": "0192f021-14a8-7a16-be9e-7de51516fd81",
                "isDeleted": false,
                "tenantId": "00000000-0000-0000-0000-000000000000",
                "rowVersion": "a8cb10e0-7bc8-4825-a5a3-9f93866ba2a1"
              },
              {
                "userName": "superadmin",
                "normalizedUserName": "SUPERADMIN",
                "email": "test1@test.test",
                "normalizedEmail": "TEST1@TEST.TEST",
                "emailConfirmed": false,
                "passwordHash": "grHoEtpw93mwO1i66/7mQw==",
                "passwordSalt": "FMCPo4r3xE+PUnH4HpPv7w==",
                "phoneNumber": "13012345679",
                "phoneNumberConfirmed": false,
                "twoFactorEnabled": false,
                "lockoutEnd": "2024-11-03T03:45:00Z",
                "lockoutEnabled": false,
                "accessFailedCount": 0,
                "status": 0,
                "userType": 0,
                "nickName": "超级管理员",
                "refreshToken": "",
                "lastIp": "",
                "lastTime": "2024-11-03T03:45:00Z",
                "remark": "",
                "claims": [],
                "logins": [],
                "tokens": [],
                "userRoles": [],
                "id": "0192f020-496a-7708-92ad-8cbe4a35dec7",
                "isDeleted": false,
                "tenantId": "00000000-0000-0000-0000-000000000000",
                "rowVersion": "5edf9ddc-d527-495b-bc02-efec797665ba"
              }
            ]
            """, JsonSerializerOptions.Web);
            return list!;
        }
    }
}
